import request from "@/utils/request";

// 查询banner图片列表
export function listWbBanner(query) {
  return request({
    url: "/system/banner/list",
    method: "get",
    params: query,
  });
}

// 查询banner图片详细
export function getWbBanner(id) {
  return request({
    url: "/system/banner/" + id,
    method: "get",
  });
}

// 新增banner图片
export function addWbBanner(data) {
  return request({
    url: "/system/banner",
    method: "post",
    data: data,
  });
}

// 修改banner图片
export function updateWbBanner(data) {
  return request({
    url: "/system/banner",
    method: "put",
    data: data,
  });
}

// 删除banner图片
export function delWbBanner(id) {
  return request({
    url: "/system/banner/" + id,
    method: "delete",
  });
}

// 查询banner商品列表
export function listGoodVo(query) {
  return request({
    url: "/applet/good/listGoodVo",
    method: "get",
    params: query,
  });
}
